package com.zl.tby.model;

import com.zl.tby.core.base.bean.TbyBaseBean;
import lombok.Data;
import org.noear.wood.annotation.Table;

/**
 * 教育资源管理
 * @author changpeng
 * @version 1.0
 * @since 2024/8/12 16:34
 */
@Data
@Table("tby_education_resource")
public class TbyEducationResource extends TbyBaseBean {
    /**观鸟课程数量*/
    private Integer birdCourse;
    /**植物课程数量*/
    private Integer plantCourse;
    /**自然保护课程数量*/
    private Integer naturalConservationCourse;
    /**鸟类标本*/
    private Integer birdSpecimen;
    /**昆虫标本*/
    private Integer insectSpecimen;
    /**植物标本*/
    private Integer plantSpecimen;
    /**两栖标本*/
    private Integer amphibiansSpecimen;
    /**自然教育人员*/
    private Integer educationPerson;
    /**志愿者*/
    private Integer volunteer;

    /**
     * 更新课程数量
     * @param entity: 参数
     */
    public void updateCourse(TbyEducationResource entity) {
        this.setBirdCourse(entity.getBirdCourse());
        this.setPlantCourse(entity.getPlantCourse());
        this.setNaturalConservationCourse(entity.getNaturalConservationCourse());
    }

    /**
     * 更新标本数量
     * @param entity: 参数
     */
    public void updateSpecimen(TbyEducationResource entity) {
        this.setBirdSpecimen(entity.getBirdSpecimen());
        this.setInsectSpecimen(entity.getInsectSpecimen());
        this.setPlantSpecimen(entity.getPlantSpecimen());
        this.setAmphibiansSpecimen(entity.getAmphibiansSpecimen());
    }

    /**
     * 更新人员数量
     * @param entity: 参数
     */
    public void updatePerson(TbyEducationResource entity) {
        this.setEducationPerson(entity.getEducationPerson());
        this.setVolunteer(entity.getVolunteer());
    }
}
